from django.db import models

class Movie(models.Model):
    title = models.CharField(max_length=100, verbose_name="电影标题")
    image = models.ImageField(upload_to='movies/', verbose_name="电影图片")
    description = models.TextField(verbose_name="电影描述")
    detail = models.TextField(verbose_name="电影详情")
    created_at = models.DateTimeField(auto_now_add=True)

    class Meta:
        verbose_name = "电影"
        verbose_name_plural = "电影"

    def __str__(self):
        return self.title
